package com.cloud.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 购物用户
 * </p>
 *
 * @author 李均华
 * @since 2021-06-04
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    public class ShopUser extends Model<ShopUser> {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 账号
     */
      private String account;

      /**
     * 姓名
     */
      private String name;

      /**
     * 备注
     */
      private String remark;


    @Override
    protected Serializable pkVal() {
          return this.id;
      }

}
